package com.edu.mapper;

import com.edu.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int addUser(User user);
    int deleteUser(int userId);
    int updateUser(User user);
    User selectUserById(int userId);
    List<User> selectAllUser();
    int increaseMoney(@Param("userId") int userId,@Param("money") double money);
    int decreaseMoney(@Param("userId") int userId,@Param("money") double money);
}
